{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "0d1c1fd0-e994-4093-a6a0-d9af9fe83b77",
   "metadata": {
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "123\n"
     ]
    }
   ],
   "source": [
    "print(int(123.456))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "762065d5-1b4e-4b47-9749-da6f287b5c10",
   "metadata": {
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'int'>\n"
     ]
    }
   ],
   "source": [
    "a = int(123)\n",
    "print(type(a))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "9ef7dd88-9c30-423b-b7e6-1c2bcebf0579",
   "metadata": {
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'int'>\n"
     ]
    }
   ],
   "source": [
    "abc = \"123\"\n",
    "xyz = int(abc)\n",
    "print (type(xyz))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "64056461-be8e-4a4a-8644-82d10e1fe593",
   "metadata": {
    "tags": []
   },
   "outputs": [
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "input one number 1\n",
      "please input two number 2\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "3\n"
     ]
    }
   ],
   "source": [
    "b=input(\"input one number\")\n",
    "d=input(\"please input two number\")\n",
    "print (int(b)+int(d))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "b6b7b01d-f6c1-4ba0-a3a7-37be1a07f8d5",
   "metadata": {
    "tags": []
   },
   "outputs": [
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "please input first number: 1\n",
      "Please input second number: 1\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "first number + second number is 2\n"
     ]
    }
   ],
   "source": [
    "input_one = input(\"please input first number:\")\n",
    "input_two = input(\"Please input second number:\")\n",
    "print( f\"first number + second number is {int(input_one)+int(input_two)}\")\n",
    "               "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "abc5db16-548d-4c99-8918-00ccc83f6f03",
   "metadata": {
    "tags": []
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "300"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "100+200\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "c754f561-3f95-4963-87c6-a80603bcab02",
   "metadata": {
    "tags": []
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "False"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "456>1234"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "83c2feed-9ce4-4e5c-a30f-4102c0956d81",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
